home *** CD-ROM | disk | FTP | other *** search
/ Young Minds / Young Minds Interactive CD-ROM.ISO / sdi / makefile < prev    next >
Encoding:
Makefile  |  1987-06-18  |  4.3 KB  |  149 lines

  1. SCOREFILENAME = /tmp/sdi_scores
  2. SCOREFILE = "${SCOREFILENAME}"
  3.  
  4. # The breakdown into SRC 1, 2 and 3 is purely for shar purposes.
  5. SRC1 = main.c helpers.c missile.c cursor.c scores.c save_game.c text.c piemenu_track.c
  6.  
  7. SRC2 = control.c blast.c circles.c laser.c rocks.c input.c notify.c control_procs.c  menu.c
  8.  
  9. SRC3 = intersect.c random.c incoming.c cities.c pr_helpers.c game_over.c argv.c global.c icons.c 
  10.  
  11. SRC = ${SRC1} ${SRC2} ${SRC3}
  12.  
  13. H1 = melt.h default_city.h cursor.h laser.h mushroom.h laserkill.h \
  14.     missilekill.h city_icon1.h \
  15.     city_icon2.h city_icon3.h city_icon4.h city_icon5.h city_icon6.h \
  16.     city_icon7.h city_icon8.h rocks.h dynacursor.h foe_picture.h \
  17.     laser_picture.h interceptor_picture.h rock_picture.h dyna_picture.h \
  18.     silly_picture.h cross_picture.h foe_ground_picture.h \
  19.     fancy_icon1.h fancy_icon2.h fancy_icon3.h 
  20.  
  21. H2 = fancy_icon4.h fancy_icon5.h \
  22.     fancy_icon6.h fancy_icon7.h fancy_icon8.h fancy_icon9.h fancy_icon10.h \
  23.     fancy_icon11.h fancy_icon12.h fancy_icon13.h fancy_icon14.h \
  24.     fancy_icon15.h fancy_icon16.h fancy_icon17.h fancy_icon18.h \
  25.     fancy_icon19.h fancy_icon20.h fancy_icon21.h fancy_icon22.h \
  26.     fancy_icon23.h fancy_icon24.h walkmenu_impl.h image_impl.h center.h \
  27.     incoming_picture.h pie_generic_cursor.h
  28.  
  29. H = ${H1} ${H2}
  30.  
  31. ADMIN = README sdi.man HISTORY.nr NOTES TODO makefile genmessage.c \
  32.     makehistory.awk editall source_converter.c longfile.nr sdi.h \
  33.     lookup.h gameover.h icon.h talkingmark.h makeman.sed novice_advice.h \
  34.     occasional_advice.h expert_advice.h about_msg.h instructions.h \
  35.     piemenu.h makeversion version.c
  36.  
  37. ALLFILES = ${ADMIN} ${SRC} ${H}
  38.  
  39. OBJ = main.o circles.o blast.o missile.o intersect.o random.o incoming.o \
  40.     cities.o pr_helpers.o control.o game_over.o helpers.o argv.o global.o \
  41.     laser.o icons.o scores.o save_game.o rocks.o notify.o input.o \
  42.     control_procs.o cursor.o text.o menu.o piemenu_track.o \
  43.     sourcecode.o history.o man.o version.o
  44.  
  45. #If you are running SUNOS 3.0, use this: CLAGS = -DSUNOS3_0
  46.  
  47. CFLAGS = -DSUNOS3_0
  48.  
  49. LIBS = -lsuntool -lsunwindow -lpixrect -lm
  50.  
  51. all: sdi
  52.  
  53. sdi: ${OBJ}
  54.     cc ${CFLAGS} -o sdi ${OBJ} ${LIBS}
  55.  
  56. version.o: ${SRC} ${H} ${ADMIN}
  57.     makeversion version.c
  58.     cc ${CFLAGS} -c version.c
  59.  
  60. fastsdi:
  61.     /bin/rm -f sdi
  62.     touch sourcecode.o
  63.     make sdi
  64.     sdi
  65.  
  66. src:
  67.     cat ${SRC} | expand -4 >src
  68.  
  69. sourcecode.o: ${SRC} source_converter
  70.     cat ${SRC} | expand -4 | source_converter source_code > /tmp/sourcecode.s
  71.     cc -c /tmp/sourcecode.s
  72.     /bin/rm -rf /tmp/sourcecode.s
  73.  
  74. history.o: HISTORY.nr source_converter
  75.     cat longfile.nr HISTORY.nr | tbl | nroff -me | col | awk -f makehistory.awk | source_converter history_text >/tmp/history.s
  76.     cc -c /tmp/history.s
  77.     /bin/rm -rf /tmp/history.s
  78.  
  79. man.o: sdi.man source_converter makeman.sed
  80.     nroff -man longfile.nr sdi.man | sed -f makeman.sed | col | source_converter man_text >/tmp/man.s
  81.     cc -c /tmp/man.s
  82.     /bin/rm -rf /tmp/man.s
  83.  
  84. grind:
  85.     cat ${SRC} | expand -4 | vgrind -t -h SDI >source.grind
  86.  
  87. textedit:
  88.     editall ${SRC} ${ADMIN}
  89. size:
  90.     wc ${SRC}
  91.     wc ${ADMIN}
  92.     wc ${H}
  93.  
  94. clean:
  95.     /bin/rm -f sdi bigmessage.h genmessage *.o *shar
  96.  
  97. shar:
  98.     /bin/rm -f sdi.shar
  99.     makescript -o sdi.shar ${ALLFILES}
  100.  
  101. Z: shar
  102.     /bin/rm -f sdi.shar.Z
  103.     compress sdi.shar
  104.  
  105. splitshar:
  106.     makescript -o sdi1.shar ${ADMIN}
  107.     makescript -o sdi2.shar ${SRC1}
  108.     makescript -o sdi3.shar ${SRC2}
  109.     makescript -o sdi4.shar ${SRC3}
  110.     makescript -o sdi5.shar ${H1}
  111.     makescript -o sdi6.shar ${H2}
  112.     ls -l sdi1.shar sdi2.shar sdi3.shar sdi4.shar sdi5.shar sdi6.shar
  113.  
  114. #
  115. # ORIGSIZE for game and the constant for bigmessage.h
  116. # are related by a factor of 64.
  117. #
  118. game_over.o: bigmessage.h game_over.c
  119.     cc ${CFLAGS} -c game_over.c -DORIGSIZE=256
  120.  
  121. scores.o: scores.c
  122.     cc ${CFLAGS} -c scores.c '-DSCOREFILE=${SCOREFILE}' 
  123.  
  124. bigmessage.h: genmessage talkingmark.h
  125.     genmessage talkingmark.h 4 >bigmessage.h
  126.  
  127. genmessage: genmessage.c
  128.     cc ${CFLAGS} -o genmessage genmessage.c ${LIBS}
  129.  
  130. testrandom: random.o testrandom.o
  131.     cc ${CFLAGS} -o testrandom testrandom.o random.o
  132.  
  133. vectortest: vectortest.o
  134.     cc ${CFLAGS} -o vectortest vectortest.o ${LIBS}
  135.  
  136. wormtest: wormtest.o
  137.     cc ${CFLAGS} -o wormtest wormtest.o ${LIBS}
  138.  
  139. icontest: icontest.o
  140.     cc ${CFLAGS} -o icontest icontest.o ${LIBS}
  141.  
  142. keytest: keytest.o
  143.     cc ${CFLAGS} -o keytest keytest.o ${LIBS}
  144.  
  145. invert: invert.o
  146.     cc ${CFLAGS} -o invert invert.o ${LIBS}
  147.  
  148. icons.o: city_icon1.h city_icon2.h city_icon3.h city_icon4.h city_icon5.h city_icon6.h city_icon7.h city_icon8.h
  149.